
app:registClass("LegendController", "app.legend.controllers.LegendController")

app:registInst(import(".models.LegendModel").new())

app:registInst(app:getClass("LegendController").new({type="systemUI"}))

local model = app:getInst("LegendModel")

app.session:on("pb_legend.S2C_NewLegendNotify",function(msg)
    model:S2C_NewLegendNotify(msg)
end)